home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
14
/
2
/
DISK1423.ZIP
/
MINSTALL.BAT
< prev
Wrap
DOS Batch File
|
1990-08-15
|
6KB
|
168 lines
echo off
cls
if .%1 == .a goto ckdupa
if .%1 == .A goto ckdupa
if .%1 == .b goto ckdupb
if .%1 == .B goto ckdupb
goto help
:ckdupa
if .%2 == .a goto help
if .%2 == .A goto help
goto ckdest
:ckdupb
if .%2 == .b goto help
if .%2 == .B goto help
:ckdest
if .%2 == .a goto instalf
if .%2 == .A goto instalf
if .%2 == .b goto instalf
if .%2 == .B goto instalf
if .%2 == .c goto instalh
if .%2 == .C goto instalh
if .%2 == .d goto instalh
if .%2 == .D goto instalh
if .%2 == .e goto instalh
if .%2 == .E goto instalh
if .%2 == .f goto instalh
if .%2 == .F goto instalh
if .%2 == .g goto instalh
if .%2 == .G goto instalh
if .%2 == .h goto instalh
if .%2 == .H goto instalh
goto help
:instalh
%2:
cd \
md mast
cd mast
:instalf
echo CHECK to see if writing over previous MAST files
if exist %2:mast1.dbf echo MAST1.DBF will be over written, press ESC to stop
if exist %2:mast2.dbf echo MAST2.DBF will be over written, press ESC to stop
if exist %2:mast3.dbf echo MAST3.DBF will be over written, press ESC to stop
if exist %2:mast31.dbf echo MAST31.DBF will be over written, press ESC to stop
if exist %2:mast32.dbf echo MAST32.DBF will be over written, press ESC to stop
if exist %2:mast4.dbf echo MAST4.DBF will be over written, press ESC to stop
if exist %2:mast41.dbf echo MAST41.DBF will be over written, press ESC to stop
if exist %2:mast42.dbf echo MAST42.DBF will be over written, press ESC to stop
if exist %2:mast5.dbf echo MAST5.DBF will be over written, press ESC to stop
if exist %2:mast51.dbf echo MAST51.DBF will be over written, press ESC to stop
if exist %2:mast52.dbf echo MAST52.DBF will be over written, press ESC to stop
if exist %2:mast6.dbf echo MAST6.DBF will be over written, press ESC to stop
if exist %2:mast61.dbf echo MAST61.DBF will be over written, press ESC to stop
if exist %2:mast62.dbf echo MAST62.DBF will be over written, press ESC to stop
if exist %2:mast90.dbf echo MAST90.DBF will be over written, press ESC to stop
if exist %2:mast91.dbf echo MAST91.DBF will be over written, press ESC to stop
if exist %2:mast92.dbf echo MAST92.DBF will be over written, press ESC to stop
if exist %2:mast93.dbf echo MAST93.DBF will be over written, press ESC to stop
echo CHECK to see if correct files exist on %1: disk
IF NOT EXIST %1:MAST.EXE ECHO %1:MAST.EXE NOT FOUND
IF NOT EXIST %1:MAST.DOC ECHO %1:MAST.DOC NOT FOUND
IF NOT EXIST %1:MAST1.DBF ECHO %1:mast1.dbf NOT FOUND
IF NOT EXIST %1:MAST2.DBF ECHO %1:mast2.dbf NOT FOUND
IF NOT EXIST %1:MAST3.DBF ECHO %1:mast3.dbf NOT FOUND
IF NOT EXIST %1:MAST31.DBF ECHO %1:mast31.dbf NOT FOUND
IF NOT EXIST %1:MAST32.DBF ECHO %1:mast32.dbf NOT FOUND
IF NOT EXIST %1:MAST4.DBF ECHO %1:mast4.dbf NOT FOUND
IF NOT EXIST %1:MAST41.DBF ECHO %1:mast41.dbf NOT FOUND
IF NOT EXIST %1:MAST42.DBF ECHO %1:mast42.dbf NOT FOUND
IF NOT EXIST %1:MAST5.DBF ECHO %1:mast5.dbf NOT FOUND
IF NOT EXIST %1:MAST51.DBF ECHO %1:mast51.dbf NOT FOUND
IF NOT EXIST %1:MAST52.DBF ECHO %1:mast52.dbf NOT FOUND
IF NOT EXIST %1:MAST6.DBF ECHO %1:mast6.dbf NOT FOUND
IF NOT EXIST %1:MAST61.DBF ECHO %1:mast61.dbf NOT FOUND
IF NOT EXIST %1:MAST62.DBF ECHO %1:mast62.dbf NOT FOUND
IF NOT EXIST %1:MAST90.DBF ECHO %1:mast90.dbf NOT FOUND
IF NOT EXIST %1:MAST91.DBF ECHO %1:mast91.dbf NOT FOUND
IF NOT EXIST %1:MAST92.DBF ECHO %1:mast92.dbf NOT FOUND
IF NOT EXIST %1:MAST93.DBF ECHO %1:mast93.dbf NOT FOUND
rem don't process if all files not present
IF NOT EXIST %1:MAST.EXE goto nodbf
IF NOT EXIST %1:MAST1.DBF goto nodbf
IF NOT EXIST %1:MAST2.DBF goto nodbf
IF NOT EXIST %1:MAST3.DBF goto nodbf
IF NOT EXIST %1:MAST31.DBF goto nodbf
IF NOT EXIST %1:MAST32.DBF goto nodbf
IF NOT EXIST %1:MAST4.DBF goto nodbf
IF NOT EXIST %1:MAST41.DBF goto nodbf
IF NOT EXIST %1:MAST42.DBF goto nodbf
IF NOT EXIST %1:MAST5.DBF goto nodbf
IF NOT EXIST %1:MAST51.DBF goto nodbf
IF NOT EXIST %1:MAST52.DBF goto nodbf
IF NOT EXIST %1:MAST6.DBF goto nodbf
IF NOT EXIST %1:MAST61.DBF goto nodbf
IF NOT EXIST %1:MAST62.DBF goto nodbf
IF NOT EXIST %1:MAST90.DBF goto nodbf
IF NOT EXIST %1:MAST91.DBF goto nodbf
IF NOT EXIST %1:MAST92.DBF goto nodbf
IF NOT EXIST %1:MAST93.DBF goto nodbf
goto copydbf
:nodbf
cls
echo .
echo cannot find all files, please correct and retry
echo .
got end
:copydbf
echo copy files from the %1: disk to the %2: disk
IF EXIST %1:MAST.EXE COPY %1:MAST.EXE %2:
IF EXIST %1:MAST.DOC COPY %1:MAST.DOC %2:
IF EXIST %1:MAST1.DBF COPY %1:mast1.dbf %2:
IF EXIST %1:MAST2.DBF COPY %1:mast2.dbf %2:
IF EXIST %1:MAST3.DBF COPY %1:mast3.dbf %2:
IF EXIST %1:MAST31.DBF COPY %1:mast31.dbf %2:
IF EXIST %1:MAST32.DBF COPY %1:mast32.dbf %2:
IF EXIST %1:MAST4.DBF COPY %1:mast4.dbf %2:
IF EXIST %1:MAST41.DBF COPY %1:mast41.dbf %2:
IF EXIST %1:MAST42.DBF COPY %1:mast42.dbf %2:
IF EXIST %1:MAST5.DBF COPY %1:mast5.dbf %2:
IF EXIST %1:MAST51.DBF COPY %1:mast51.dbf %2:
IF EXIST %1:MAST52.DBF COPY %1:mast52.dbf %2:
IF EXIST %1:MAST6.DBF COPY %1:mast6.dbf %2:
IF EXIST %1:MAST61.DBF COPY %1:mast61.dbf %2:
IF EXIST %1:MAST62.DBF COPY %1:mast62.dbf %2:
IF EXIST %1:MAST90.DBF COPY %1:mast90.dbf %2:
IF EXIST %1:MAST91.DBF COPY %1:mast91.dbf %2:
IF EXIST %1:MAST92.DBF COPY %1:mast92.dbf %2:
IF EXIST %1:MAST93.DBF COPY %1:mast93.dbf %2:
if .%2==.c goto cok
if .%2==.C goto cok
echo *
echo You MUST set the UTILITIES screen DEFAULT DRIVE to %2 before you start
echo *
:cok
echo *
echo now just type MAST 90 and enjoy
echo *
goto end
:help
cls
echo *
echo To install MULTI ASSISTANT from floppy A: to hard disk C:
echo *
echo just type MINSTALL A C
echo *
echo To install MULTI ASSISTANT from floppy A: to floppy B:
echo *
echo just type MINSTALL A B
echo *
echo *
echo you should setup your config.sys first
echo buffers=16
echo files=8
echo *
if .%2==.a goto flopmsg
if .%2==.A goto flopmsg
if .%2==.b goto flopmsg
if .%2==.B goto flopmsg
goto end
:flopmsg
echo *
echo if you are using floppies
echo *
echo you must put COMSPEC=C:\DOS\COMMAND.COM in your autoexec.bat
echo *
echo this assumes your COMMAND.COM is in the DOS partition on your C drive
echo *
:end